package com.mvc.service.impl;

import com.mvc.entity.OrderSnapshot;
import com.mvc.mapper.OrderSnapshotMapper;
import com.mvc.service.OrderSnapshotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName OrderSnapshotImpl
 * @Description TODO
 * @Author Gla
 * @Date 2021/12/2 11:22
 * @Version 1.0
 **/
@Service
public class OrderSnapshotImpl implements OrderSnapshotService {
    @Autowired
    private OrderSnapshotMapper orderSnapshotMapper;
    @Override
    public List<OrderSnapshot> listSearch(Integer startRow, Integer limit, Integer orderId) {
        return orderSnapshotMapper.listSearch(startRow,  limit,  orderId);
    }

    @Override
    public Integer getCount(Integer orderId) {
        return orderSnapshotMapper.getCount(orderId);
    }
}
